<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Icms.Core.Model.ReportRequest>>" %>
<%foreach (var o in Model)
  {
      var rt = o.ReportTemplate ?? new ReportTemplate();
      var g = rt.Group ?? new ReportTemplateGroup();
      %>
 
<tr id='o<%=o.Id%>'>
    <td>
        <%=rt.Title%>
    </td>
    <td>
    <%=g.Name %>
    </td>
    <td>
        <%=o.User.Login %>
    </td>
    <td>
        <%=o.Date %>
    </td>
    <td>
        <%if (o.FileName != null && o.FileName != "error")
          {%>
        <%=Html.ActionLink("descarca", "download", new { id = o.Id }, new { @class = "abtn" })%>
        <%}
          else if (o.FileName == "error") Response.Write("eroare");
          else
          {%>
        in proces
        <%}%>
    </td>
</tr>
<%
  }%>